<!doctype html>



  


<html class="theme-next muse use-motion">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>



<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />












  
  
  <link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />




  
  
  
  

  
    
    
  

  

  

  
    
      
    

    
  

  

  
    
    
    <link href="//fonts.googleapis.com/css?family=Microsoft YaHei:300,300italic,400,400italic,700,700italic|consolas:300,300italic,400,400italic,700,700italic&subset=latin,latin-ext" rel="stylesheet" type="text/css">
  






<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.4.0" rel="stylesheet" type="text/css" />

<link href="/css/main.css?v=5.0.2" rel="stylesheet" type="text/css" />


  <meta name="keywords" content="HongqinMa, Hiraku, web前端, web全栈, javascript, html, css, nodejs" />








  <link rel="shortcut icon" type="image/x-icon" href="http://ofy7k3v4s.bkt.clouddn.com/mylogo.png?v=5.0.2" />






<meta name="description" content="Spell at all costs， to rush you in the future.">
<meta property="og:type" content="website">
<meta property="og:title" content="HongqinMa' Blog">
<meta property="og:url" content="https://hongqinma.github.io/index.html">
<meta property="og:site_name" content="HongqinMa' Blog">
<meta property="og:description" content="Spell at all costs， to rush you in the future.">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="HongqinMa' Blog">
<meta name="twitter:description" content="Spell at all costs， to rush you in the future.">



<script type="text/javascript" id="hexo.configuration">
  var NexT = window.NexT || {};
  var CONFIG = {
    scheme: 'Muse',
    sidebar: {"position":"left","display":"post"},
    fancybox: true,
    motion: true,
    duoshuo: {
      userId: '6347850919329138000',
      author: 'Hiraku'
    }
  };
</script>




  <link rel="canonical" href="https://hongqinma.github.io/"/>


  <title> HongqinMa' Blog </title>
</head>

<body itemscope itemtype="//schema.org/WebPage" lang="en">

  



  <script type="text/javascript">
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "//hm.baidu.com/hm.js?10010323";
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
  </script>








  
  
    
  

  <div class="container one-collumn sidebar-position-left 
   page-home 
 ">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="//schema.org/WPHeader">
      <div class="header-inner"><div class="site-meta custom-logo">
  
    <div class="site-meta-headline">
      <a>
        <img class="custom-logo-image" src="http://ofy7k3v4s.bkt.clouddn.com/photo.jpg"
             alt="HongqinMa' Blog"/>
      </a>
    </div>
  

  <div class="custom-logo-site-title">
    <a href="/"  class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <span class="site-title">HongqinMa' Blog</span>
      <span class="logo-line-after"><i></i></span>
    </a>
  </div>
  <p class="site-subtitle">Spell at all costs， to rush you in the future。</p>
</div>

<div class="site-nav-toggle">
  <button>
    <span class="btn-bar"></span>
    <span class="btn-bar"></span>
    <span class="btn-bar"></span>
  </button>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br />
            
            Home
          </a>
        </li>
      
        
        <li class="menu-item menu-item-categories">
          <a href="/categories" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-th"></i> <br />
            
            Categories
          </a>
        </li>
      
        
        <li class="menu-item menu-item-about">
          <a href="/about" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-user"></i> <br />
            
            About
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/archives" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br />
            
            Archives
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/tags" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-tags"></i> <br />
            
            Tags
          </a>
        </li>
      

      
    </ul>
  

  
</nav>

 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            
  <section id="posts" class="posts-expand">
    
      

  
  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="//schema.org/Article">

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                
                <a class="post-title-link" href="/2016/12/14/s016-ionic-cordova-AngularJS混合app开发笔记/" itemprop="url">
                  ionic+cordova+AngularJS混合app开发笔记
                </a>
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            <span class="post-meta-item-icon">
              <i class="fa fa-calendar-o"></i>
            </span>
            <span class="post-meta-item-text">Posted on</span>
            <time itemprop="dateCreated" datetime="2016-12-14T20:41:00+08:00" content="2016-12-14">
              2016-12-14
            </time>
          </span>

          
            <span class="post-category" >
              &nbsp; | &nbsp;
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">In</span>
              
                <span itemprop="about" itemscope itemtype="https://schema.org/Thing">
                  <a href="/categories/Hybrid-APP-开发系列/" itemprop="url" rel="index">
                    <span itemprop="name">Hybrid APP 开发系列</span>
                  </a>
                </span>

                
                

              
            </span>
          

          
            
              <span class="post-comments-count">
                &nbsp; | &nbsp;
                <a href="/2016/12/14/s016-ionic-cordova-AngularJS混合app开发笔记/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count ds-thread-count" data-thread-key="2016/12/14/s016-ionic-cordova-AngularJS混合app开发笔记/" itemprop="commentsCount"></span>
                </a>
              </span>
            
          

          

          

          

          
        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
          ionic &#x9879;&#x76EE;&#x5B89;&#x88C5;&#x9879;&#x76EE;&#x4F9D;&#x8D56;
&#x5DF2;&#x5728;&#x73AF;&#x5883;&#x914D;&#x7F6E;&#x91CC;&#x9762;&#x8BBE;&#x7F6E;&#x597D;

&#x6253;&#x5F00;&#x547D;&#x4EE4;&#x7A97;&#x53E3;,&#x5728;&#x641C;&#x7D22;&#x4E2D;&#x8F93;&#x5165;cmd&#x8F93;&#x5165;npm install cordova ionic -g

&#x5FEB;&#x901F;&#x521B;&#x5EFA;&#x9879;&#x76EE;

&#x5148;&#x627E;&#x5230;&#x4E00;&#x4E2A;&#x653E;&#x9879;&#x76EE;&#x7684;&#x4F4D;&#x7F6E;&#x5728;&#x76EE;&#x5F55;&#x4E2D;&#x6309;&#x4F4F; shift &#x952E;&#x53F3;&#x51FB;,&#x5728;&#x5F53;&#x524D;&#x6587;&#x4EF6;&#x5939;&#x6253;&#x5F00;&#x547D;&#x4EE4;&#x7A97;&#x53E3;ionic  start  myApp (&#x9ED8;&#x8BA4;&#x662F;tab&#x6837;&#x5F0F;)

&#x9879;&#x76EE;&#x7ED3;&#x6784;&#x8BF4;&#x660E;12345678|-- hooks|-- platform &#x624B;&#x673A;&#x5E73;&#x53F0;|-- plugins cordova &#x63D2;&#x4EF6;&#x5E93;|-- resources &#x56FE;&#x7247;&#x8D44;&#x6E90;|-- scss|-- www &#x9879;&#x76EE;&#x8D44;&#x6E90;|-- .bowerrc bower &#x914D;&#x7F6E;&#x6587;&#x4EF6;...
&#x6253;&
          ...

          <div class="post-more-link text-center">
            <a class="btn" href="/2016/12/14/s016-ionic-cordova-AngularJS混合app开发笔记/#more" rel="contents">
              Read more &raquo;
            </a>
          </div>
        
      
    </div>

    <div>
      
    </div>

    <div>
      
    </div>

    <footer class="post-footer">
      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </article>


    
      

  
  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="//schema.org/Article">

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                
                <a class="post-title-link" href="/2016/12/09/s016-ionic-js笔记/" itemprop="url">
                  ionic js笔记
                </a>
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            <span class="post-meta-item-icon">
              <i class="fa fa-calendar-o"></i>
            </span>
            <span class="post-meta-item-text">Posted on</span>
            <time itemprop="dateCreated" datetime="2016-12-09T22:45:32+08:00" content="2016-12-09">
              2016-12-09
            </time>
          </span>

          
            <span class="post-category" >
              &nbsp; | &nbsp;
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">In</span>
              
                <span itemprop="about" itemscope itemtype="https://schema.org/Thing">
                  <a href="/categories/Hybrid-APP-开发系列/" itemprop="url" rel="index">
                    <span itemprop="name">Hybrid APP 开发系列</span>
                  </a>
                </span>

                
                

              
            </span>
          

          
            
              <span class="post-comments-count">
                &nbsp; | &nbsp;
                <a href="/2016/12/09/s016-ionic-js笔记/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count ds-thread-count" data-thread-key="2016/12/09/s016-ionic-js笔记/" itemprop="commentsCount"></span>
                </a>
              </span>
            
          

          

          

          

          
        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
          &#x4EC0;&#x4E48;&#x662F; Ionic JSionic &#x5BF9; AngularJS &#x8FDB;&#x884C;&#x4E86;&#x6269;&#x5C55;&#xFF0C;&#x4E3B;&#x8981;&#x5C31;&#x662F;&#x5C06;&#x79FB;&#x52A8;&#x7AEF;&#x5F00;&#x53D1;&#x4E2D;&#x5E38;&#x89C1;&#x7684; UI &#x7EC4;&#x4EF6;&#x62BD;&#x8C61;&#x6210; AngularJS &#x7684;&#x6307;&#x4EE4;&#xFF0C;&#x4FBF;&#x4E8E;&#x6211;&#x4EEC;&#x5728;&#x5F00;&#x53D1;&#x4E2D;&#x5FEB;&#x901F;&#x6784;&#x5EFA;&#x5E94;&#x7528;&#x754C;&#x9762;&#x3002;

&#x89C6;&#x56FE;&#x5BFC;&#x822A;ion-nav-view&#x5728; ionic &#x91CC;&#xFF0C;&#x6211;&#x4EEC;&#x4F7F;&#x7528; ion-nav-view &#x6307;&#x4EE4;&#x4EE3;&#x66FF; AngularUI Route &#x4E2D;&#x7684; ui-view &#x6307;&#x4EE4;&#xFF0C;&#x6765;&#x8FDB;&#x884C;&#x6A21;&#x677F;&#x7684;&#x6E32;&#x67D3;&#xFF1A;
12&lt;ion-nav-view&gt;&lt;/ion-nav-view&gt;
ion-view&#x76F8;&#x5F53;&#x4E8E;&#x4E00;&#x4E2A; div &#x91CC;&#x9762;&#x591A;&#x4E86;&#x5F88;&#x591A;&#x5C5E;&#x6027;&#x3002;
cache-view - &#x662F;&#x5426;&#x5BF9;&#x8FD9;&#x4E2A;&#x6A21;&#x677F;&#x89C6;&#x56FE;&#x8FDB;&#
          ...

          <div class="post-more-link text-center">
            <a class="btn" href="/2016/12/09/s016-ionic-js笔记/#more" rel="contents">
              Read more &raquo;
            </a>
          </div>
        
      
    </div>

    <div>
      
    </div>

    <div>
      
    </div>

    <footer class="post-footer">
      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </article>


    
      

  
  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="//schema.org/Article">

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                
                <a class="post-title-link" href="/2016/12/07/s016-ioionic-css笔记/" itemprop="url">
                  ionic css笔记
                </a>
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            <span class="post-meta-item-icon">
              <i class="fa fa-calendar-o"></i>
            </span>
            <span class="post-meta-item-text">Posted on</span>
            <time itemprop="dateCreated" datetime="2016-12-07T18:44:52+08:00" content="2016-12-07">
              2016-12-07
            </time>
          </span>

          
            <span class="post-category" >
              &nbsp; | &nbsp;
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">In</span>
              
                <span itemprop="about" itemscope itemtype="https://schema.org/Thing">
                  <a href="/categories/Hybrid-APP-开发系列/" itemprop="url" rel="index">
                    <span itemprop="name">Hybrid APP 开发系列</span>
                  </a>
                </span>

                
                

              
            </span>
          

          
            
              <span class="post-comments-count">
                &nbsp; | &nbsp;
                <a href="/2016/12/07/s016-ioionic-css笔记/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count ds-thread-count" data-thread-key="2016/12/07/s016-ioionic-css笔记/" itemprop="commentsCount"></span>
                </a>
              </span>
            
          

          

          

          

          
        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
          ionic Cssionic css&#x662F;&#x4EC0;&#x4E48;&#x53EF;&#x4EE5;&#x53EA;&#x4F7F;&#x7528; ionic &#x7684; CSS &#x6846;&#x67B6;&#xFF1A;&#x76F4;&#x63A5;&#x5728; HTML &#x4E2D;&#x5F15;&#x5165; ionic.css &#x5C31;&#x53EF;&#x4EE5;&#x4E86;&#x3002;ionic &#x7684; CSS &#x6846;&#x67B6;&#x4E3B;&#x8981;&#x63D0;&#x4F9B;&#x9884;&#x5B9A;&#x4E49;&#x7684; CSS &#x7C7B;&#xFF0C;&#x6765;&#x5E2E;&#x52A9;&#x6211;&#x4EEC;&#x5FEB;&#x901F;&#x6784;&#x5EFA;&#x9002;&#x7528;&#x4E8E;&#x624B;&#x673A;&#x7AEF;&#x7684; UI&#x3002;
Ionic css&#x7EC4;&#x6210;
&#x57FA;&#x672C;&#x5E03;&#x5C40;&#x7C7B;&#x989C;&#x8272;&#x548C;&#x56FE;&#x6807;&#x7C7B;&#x754C;&#x9762;&#x7EC4;&#x4EF6;&#x7C7B;&#x6805;&#x683C;&#x7CFB;&#x7EDF;&#x7C7B;

&#x5E03;&#x5C40;&#x5B9A;&#x9AD8;&#x6761;&#x5757;&#x5B9A;&#x4E49;.bar&#x2014;&#x2014;&#x5C06;&#x5143;&#x7D20;&#x58F0;&#x660E;&#x4E3A;&#x5C4F;&#x5E55;&#x4E0A;&#x7EDD;&#x5BF9;&#x5B9A;&#x4F4D;&#x7684;&#x5757;&#x72B6;&#x533A;&#x57DF;&#xFF0C;&#x5177;&#x6709;&#x56FA;&#x5B9A;&#x7684;&#x9AD8;&#x5EA6;&#xFF08;44px&#xFF09;

          ...

          <div class="post-more-link text-center">
            <a class="btn" href="/2016/12/07/s016-ioionic-css笔记/#more" rel="contents">
              Read more &raquo;
            </a>
          </div>
        
      
    </div>

    <div>
      
    </div>

    <div>
      
    </div>

    <footer class="post-footer">
      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </article>


    
      

  
  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="//schema.org/Article">

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                
                <a class="post-title-link" href="/2016/12/05/s015-React学习笔记/" itemprop="url">
                  React学习笔记
                </a>
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            <span class="post-meta-item-icon">
              <i class="fa fa-calendar-o"></i>
            </span>
            <span class="post-meta-item-text">Posted on</span>
            <time itemprop="dateCreated" datetime="2016-12-05T21:49:17+08:00" content="2016-12-05">
              2016-12-05
            </time>
          </span>

          
            <span class="post-category" >
              &nbsp; | &nbsp;
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">In</span>
              
                <span itemprop="about" itemscope itemtype="https://schema.org/Thing">
                  <a href="/categories/React系列/" itemprop="url" rel="index">
                    <span itemprop="name">React系列</span>
                  </a>
                </span>

                
                

              
            </span>
          

          
            
              <span class="post-comments-count">
                &nbsp; | &nbsp;
                <a href="/2016/12/05/s015-React学习笔记/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count ds-thread-count" data-thread-key="2016/12/05/s015-React学习笔记/" itemprop="commentsCount"></span>
                </a>
              </span>
            
          

          

          

          

          
        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
          React &#x662F; Facebook &#x5F00;&#x6E90;&#x7684;&#x4E00;&#x4E2A;&#x7528;&#x4E8E;&#x6784;&#x5EFA;&#x7528;&#x6237;&#x754C;&#x9762;&#x7684; Javascript &#x5E93;&#xFF0C;&#x5DF2;&#x7ECF; &#x5E94;&#x7528;&#x4E8E; Facebook &#x53CA;&#x65D7;&#x4E0B; Instagram&#x3002;
&#x548C;&#x5E9E;&#x5927;&#x7684; AngularJS &#x4E0D;&#x540C;&#xFF0C;React &#x4E13;&#x6CE8;&#x4E8E; MVC &#x67B6;&#x6784;&#x4E2D;&#x7684; V&#xFF0C;&#x5373;&#x89C6;&#x56FE;&#x3002; &#x8FD9;&#x4F7F;&#x5F97; React &#x5F88;&#x5BB9;&#x6613;&#x548C;&#x5F00;&#x53D1;&#x8005;&#x5DF2;&#x6709;&#x7684;&#x5F00;&#x53D1;&#x6808;&#x8FDB;&#x884C;&#x878D;&#x5408;&#x3002;
React &#x987A;&#x5E94;&#x4E86; Web &#x5F00;&#x53D1;&#x7EC4;&#x4EF6;&#x5316;&#x7684;&#x8D8B;&#x52BF;&#x3002;&#x5E94;&#x7528; React &#x65F6;&#xFF0C;&#x5E94;&#x8BE5;&#x4ECE; UI &#x51FA;&#x53D1;&#x62BD;&#x8C61;&#x51FA;&#x4E0D;&#x540C;&#x7684;&#x7EC4;&#x4EF6;&#xFF0C;&#x7136;&#x540E;&#x50CF;&#x642D;&#x79EF;&#x6728;&#x4E00;&#x6837;&#x628A;&#x5B83;&#x4EEC;&#x62FC;&#x88C5;&#x8D77;&#x6765;&#x3002
          ...

          <div class="post-more-link text-center">
            <a class="btn" href="/2016/12/05/s015-React学习笔记/#more" rel="contents">
              Read more &raquo;
            </a>
          </div>
        
      
    </div>

    <div>
      
    </div>

    <div>
      
    </div>

    <footer class="post-footer">
      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </article>


    
      

  
  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="//schema.org/Article">

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                
                <a class="post-title-link" href="/2016/12/02/t13-webpack项目构建工具/" itemprop="url">
                  webpack 构建工具
                </a>
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            <span class="post-meta-item-icon">
              <i class="fa fa-calendar-o"></i>
            </span>
            <span class="post-meta-item-text">Posted on</span>
            <time itemprop="dateCreated" datetime="2016-12-02T21:21:03+08:00" content="2016-12-02">
              2016-12-02
            </time>
          </span>

          
            <span class="post-category" >
              &nbsp; | &nbsp;
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">In</span>
              
                <span itemprop="about" itemscope itemtype="https://schema.org/Thing">
                  <a href="/categories/webpack/" itemprop="url" rel="index">
                    <span itemprop="name">webpack</span>
                  </a>
                </span>

                
                

              
            </span>
          

          
            
              <span class="post-comments-count">
                &nbsp; | &nbsp;
                <a href="/2016/12/02/t13-webpack项目构建工具/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count ds-thread-count" data-thread-key="2016/12/02/t13-webpack项目构建工具/" itemprop="commentsCount"></span>
                </a>
              </span>
            
          

          

          

          

          
        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
          CommonJS &#x548C; AMD &#x662F;&#x7528;&#x4E8E; JavaScript &#x6A21;&#x5757;&#x7BA1;&#x7406;&#x7684;&#x4E24;&#x5927;&#x89C4;&#x8303;&#xFF0C;&#x524D;&#x8005;&#x5B9A;&#x4E49;&#x7684;&#x662F;&#x6A21;&#x5757;&#x7684;&#x540C;&#x6B65;&#x52A0;&#x8F7D;&#xFF0C;&#x4E3B;&#x8981;&#x7528;&#x4E8E; NodeJS &#xFF1B;&#x800C;&#x540E;&#x8005;&#x5219;&#x662F;&#x5F02;&#x6B65;&#x52A0;&#x8F7D;&#xFF0C;&#x901A;&#x8FC7; RequireJS &#x7B49;&#x5DE5;&#x5177;&#x9002;&#x7528;&#x4E8E;&#x524D;&#x7AEF;&#x3002;&#x968F;&#x7740; npm &#x6210;&#x4E3A;&#x4E3B;&#x6D41;&#x7684; JavaScript &#x7EC4;&#x4EF6;&#x53D1;&#x5E03;&#x5E73;&#x53F0;&#xFF0C;&#x8D8A;&#x6765;&#x8D8A;&#x591A;&#x7684;&#x524D;&#x7AEF;&#x9879;&#x76EE;&#x4E5F;&#x4F9D;&#x8D56;&#x4E8E; npm &#x4E0A;&#x7684;&#x9879;&#x76EE;&#xFF0C;&#x6216;&#x8005;&#x81EA;&#x8EAB;&#x5C31;&#x4F1A;&#x53D1;&#x5E03;&#x5230; npm &#x5E73;&#x53F0;&#x3002;&#x56E0;&#x6B64;&#xFF0C;&#x8BA9;&#x524D;&#x7AEF;&#x9879;&#x76EE;&#x66F4;&#x65B9;&#x4FBF;&#x7684;&#x4F7F;&#x7528; npm &#x4E0A;&#x7684;&#x8D44;&#x
          ...

          <div class="post-more-link text-center">
            <a class="btn" href="/2016/12/02/t13-webpack项目构建工具/#more" rel="contents">
              Read more &raquo;
            </a>
          </div>
        
      
    </div>

    <div>
      
    </div>

    <div>
      
    </div>

    <footer class="post-footer">
      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </article>


    
      

  
  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="//schema.org/Article">

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                
                <a class="post-title-link" href="/2016/11/24/t12-混合APP开发环境配置/" itemprop="url">
                  混合APP开发环境配置-ionic、cordora
                </a>
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            <span class="post-meta-item-icon">
              <i class="fa fa-calendar-o"></i>
            </span>
            <span class="post-meta-item-text">Posted on</span>
            <time itemprop="dateCreated" datetime="2016-11-24T08:22:34+08:00" content="2016-11-24">
              2016-11-24
            </time>
          </span>

          
            <span class="post-category" >
              &nbsp; | &nbsp;
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">In</span>
              
                <span itemprop="about" itemscope itemtype="https://schema.org/Thing">
                  <a href="/categories/Hybrid-APP-开发系列/" itemprop="url" rel="index">
                    <span itemprop="name">Hybrid APP 开发系列</span>
                  </a>
                </span>

                
                

              
            </span>
          

          
            
              <span class="post-comments-count">
                &nbsp; | &nbsp;
                <a href="/2016/11/24/t12-混合APP开发环境配置/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count ds-thread-count" data-thread-key="2016/11/24/t12-混合APP开发环境配置/" itemprop="commentsCount"></span>
                </a>
              </span>
            
          

          

          

          

          
        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
          java&#x73AF;&#x5883;Android ADT&#x9700;&#x8981;
1&#x3001;JDK&#x4E0B;&#x8F7D;&#x5730;&#x5740;&#xFF1A;
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
2&#x3001;&#x914D;&#x7F6E; Java &#x7684;&#x73AF;&#x5883;&#x53D8;&#x91CF; JAVA_HOME &#x548C; CLASSPATH
JAVA_HOME &#x662F; java &#x7684;&#x5B89;&#x88C5;&#x76EE;&#x5F55;&#x7684; bin &#x76EE;&#x5F55;
JAVA_HOME: D:\Program Files\Java\jdk1.8.0_91 
CLASSPATH: .;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;
&#x6211;&#x81EA;&#x5DF1;&#x7684;&#x914D;&#x7F6E;&#x5982;&#x4E0B;&#xFF1A;

JAVA_HOME   C:\Program Files\Java\jdk1.8.0_112Path:  %JAVA_HOME%\jre\bin;%JAVA_HOME%\bin;CLASSPAHT: .;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;

&#x914D;&#x7F6E; Java &#x73AF;&#x5883;&#x53D8;&#x91CF;&#x7684;&#x65B9;&#x6CD5;
C++ &#x73AF;&#x5883;&#x9700;&#x8981; c++ &#x73AF;&#x5883;&#xFF0C;window 10 &#x5DF2;&#x81EA;&#x5E26;&#xFF0C;&#x5176;&#x4ED6;&#x7CFB;&#x7EDF;&#x53EA;&#x9700;&#x5B89;&#x88C5; vs2016&#xFF0C;&#x628A; c++ &#x73A
          ...

          <div class="post-more-link text-center">
            <a class="btn" href="/2016/11/24/t12-混合APP开发环境配置/#more" rel="contents">
              Read more &raquo;
            </a>
          </div>
        
      
    </div>

    <div>
      
    </div>

    <div>
      
    </div>

    <footer class="post-footer">
      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </article>


    
      

  
  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="//schema.org/Article">

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                
                <a class="post-title-link" href="/2016/11/19/s014-Node-留言列表小项目/" itemprop="url">
                  Node-留言列表小项目
                </a>
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            <span class="post-meta-item-icon">
              <i class="fa fa-calendar-o"></i>
            </span>
            <span class="post-meta-item-text">Posted on</span>
            <time itemprop="dateCreated" datetime="2016-11-19T12:50:39+08:00" content="2016-11-19">
              2016-11-19
            </time>
          </span>

          
            <span class="post-category" >
              &nbsp; | &nbsp;
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">In</span>
              
                <span itemprop="about" itemscope itemtype="https://schema.org/Thing">
                  <a href="/categories/Node-js/" itemprop="url" rel="index">
                    <span itemprop="name">Node.js</span>
                  </a>
                </span>

                
                

              
            </span>
          

          
            
              <span class="post-comments-count">
                &nbsp; | &nbsp;
                <a href="/2016/11/19/s014-Node-留言列表小项目/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count ds-thread-count" data-thread-key="2016/11/19/s014-Node-留言列表小项目/" itemprop="commentsCount"></span>
                </a>
              </span>
            
          

          

          

          

          
        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
          &#x8BE5;&#x9879;&#x76EE;&#x662F;&#x4EFF;&#x7167;&#x67D0;&#x4E9B;&#x7F51;&#x7AD9;&#x7684;&#x7559;&#x8A00;&#x5217;&#x8868;&#x505A;&#x7684;&#x4E00;&#x4E9B;&#x5C0F;&#x529F;&#x80FD;&#xFF0C;&#x9879;&#x76EE;&#x6CA1;&#x6709;&#x5212;&#x5206; M V C&#xFF0C;&#x4F7F;&#x7528;&#x7684;&#x524D;&#x53F0;&#x6280;&#x672F;&#x662F; Bootstrap&#xFF0C;&#x540E;&#x53F0;&#x4F7F;&#x7528;&#x7684;&#x662F; Node.js&#xFF0C;&#x6A21;&#x677F;&#x5F15;&#x64CE;&#x4F7F;&#x7528;&#x7684;&#x662F; EJS&#xFF0C;&#x6570;&#x636E;&#x5E93;&#x662F; MySQL&#x3002;
&#x4F9D;&#x8D56;
Bootstrap
jQuery
&#x4F7F;&#x7528; jQuery &#x7684; ajax &#x505A;&#x5F02;&#x6B65;&#x65E0;&#x5237;&#x65B0;&#x5217;&#x8868;&#x52A0;&#x8F7D;


EJS
Node.js
express
body-parser express &#x7684;&#x4E2D;&#x95F4;&#x4EF6;(middleware)&#xFF0C;&#x53EF;&#x4EE5;&#x7528;&#x6765;&#x89E3;&#x6790; post &#x8BF7;&#x6C42;&#x4F53;&#x6570;&#x636E;


mysql
moment


js-cookie

&#x5B89;&#x88C5;&#x4F9D;&#x8D56;1$ npm install bootstrap jquery express art-template --save
package.json (&#x5305;&
          ...

          <div class="post-more-link text-center">
            <a class="btn" href="/2016/11/19/s014-Node-留言列表小项目/#more" rel="contents">
              Read more &raquo;
            </a>
          </div>
        
      
    </div>

    <div>
      
    </div>

    <div>
      
    </div>

    <footer class="post-footer">
      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </article>


    
      

  
  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="//schema.org/Article">

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                
                <a class="post-title-link" href="/2016/11/14/S013-Express中使用模板引擎/" itemprop="url">
                  Express中使用模板引擎
                </a>
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            <span class="post-meta-item-icon">
              <i class="fa fa-calendar-o"></i>
            </span>
            <span class="post-meta-item-text">Posted on</span>
            <time itemprop="dateCreated" datetime="2016-11-14T20:38:17+08:00" content="2016-11-14">
              2016-11-14
            </time>
          </span>

          
            <span class="post-category" >
              &nbsp; | &nbsp;
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">In</span>
              
                <span itemprop="about" itemscope itemtype="https://schema.org/Thing">
                  <a href="/categories/Node-js/" itemprop="url" rel="index">
                    <span itemprop="name">Node.js</span>
                  </a>
                </span>

                
                

              
            </span>
          

          
            
              <span class="post-comments-count">
                &nbsp; | &nbsp;
                <a href="/2016/11/14/S013-Express中使用模板引擎/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count ds-thread-count" data-thread-key="2016/11/14/S013-Express中使用模板引擎/" itemprop="commentsCount"></span>
                </a>
              </span>
            
          

          

          

          

          
        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
          &#x5728; Express &#x4E2D;&#x4F7F;&#x7528; ejs &#x6A21;&#x677F;&#x5F15;&#x64CE;&#x5B89;&#x88C5;&#xFF1A;
1$ npm install --save ejs
&#x914D;&#x7F6E; Express &#x4F7F;&#x7528; ejs &#x6A21;&#x677F;

app.set(&apos;views&apos;, config.viewPath);
&#x914D;&#x7F6E;&#x6A21;&#x677F;&#x6587;&#x4EF6;&#x5B58;&#x653E;&#x7684;&#x8DEF;&#x5F84;


app.set(&apos;view engine&apos;, &apos;ejs&apos;);
&#x914D;&#x7F6E;&#x8C03;&#x7528; res.render &#x7684;&#x65F6;&#x5019;&#x4F7F;&#x7528;&#x7684;&#x6A21;&#x677F;&#x5F15;&#x64CE;
&#x627E;&#x5230; view &#x76EE;&#x5F55;&#x4E0B;&#x7684; .ejs &#x540E;&#x7F00;&#x7684;&#x6587;&#x4EF6;



12app.set(&apos;views&apos;, &apos;&#x89C6;&#x56FE;&#x6A21;&#x677F;&#x6587;&#x4EF6;&#x5B58;&#x653E;&#x8DEF;&#x5F84;&apos;)app.set(&apos;view engine&apos;, &apos;&#x5B89;&#x88C5;&#x7684;&#x6A21;&#x677F;&#x5F15;&#x64CE;&#x7684;&#x540D;&#x79F0;&#xFF0C;&#x4F8B;&#x5982;&#xFF1A;ejs&apos;)
&#x5982;&#x679C;&#x4F7F;&#x7528;&#x4E0A;&#x9762;&#x7684;&#x914D;&#x7F6E;&#xFF0C;&#x5219;&#x89C6;&#x56FE;&#x
          ...

          <div class="post-more-link text-center">
            <a class="btn" href="/2016/11/14/S013-Express中使用模板引擎/#more" rel="contents">
              Read more &raquo;
            </a>
          </div>
        
      
    </div>

    <div>
      
    </div>

    <div>
      
    </div>

    <footer class="post-footer">
      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </article>


    
      

  
  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="//schema.org/Article">

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                
                <a class="post-title-link" href="/2016/11/01/s012-Cookie、Session-存储/" itemprop="url">
                  Cookie、Session 存储技术
                </a>
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            <span class="post-meta-item-icon">
              <i class="fa fa-calendar-o"></i>
            </span>
            <span class="post-meta-item-text">Posted on</span>
            <time itemprop="dateCreated" datetime="2016-11-01T19:25:56+08:00" content="2016-11-01">
              2016-11-01
            </time>
          </span>

          
            <span class="post-category" >
              &nbsp; | &nbsp;
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">In</span>
              
                <span itemprop="about" itemscope itemtype="https://schema.org/Thing">
                  <a href="/categories/Storage/" itemprop="url" rel="index">
                    <span itemprop="name">Storage</span>
                  </a>
                </span>

                
                

              
            </span>
          

          
            
              <span class="post-comments-count">
                &nbsp; | &nbsp;
                <a href="/2016/11/01/s012-Cookie、Session-存储/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count ds-thread-count" data-thread-key="2016/11/01/s012-Cookie、Session-存储/" itemprop="commentsCount"></span>
                </a>
              </span>
            
          

          

          

          

          
        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
          Cookie&#x4FDD;&#x5B58;&#x7528;&#x6237;&#x548C;&#x7F51;&#x7AD9;&#x4E4B;&#x95F4;&#x7684;&#x4E00;&#x4E2A;&#x72B6;&#x6001;&#x3002;

Cookie&#xFF08;&#x590D;&#x6570;&#x5F62;&#x6001;Cookies&#xFF09;&#xFF0C;&#x4E2D;&#x6587;&#x540D;&#x79F0;&#x4E3A;&#x201C;&#x5C0F;&#x578B;&#x6587;&#x672C;&#x6587;&#x4EF6;&#x201D;&#x6216;&#x201C;&#x5C0F;&#x751C;&#x997C;&#x201D;
&#x6307;&#x67D0;&#x4E9B;&#x7F51;&#x7AD9;&#x4E3A;&#x4E86;&#x8FA8;&#x522B;&#x7528;&#x6237;&#x8EAB;&#x4EFD;&#x800C;&#x50A8;&#x5B58;&#x5728;&#x7528;&#x6237;&#x672C;&#x5730;&#x7EC8;&#x7AEF;&#xFF08;Client Side&#xFF09;&#x4E0A;&#x7684;&#x6570;&#x636E;&#xFF08;&#x901A;&#x5E38;&#x7ECF;&#x8FC7;&#x52A0;&#x5BC6;&#xFF09;&#x3002;
&#x662F;&#x7F51;&#x666F;&#x516C;&#x53F8;&#x7684;&#x524D;&#x96C7;&#x5458;&#x5362;&#xB7;&#x8499;&#x7279;&#x5229;&#x5728;1993&#x5E74;3&#x6708;&#x7684;&#x53D1;&#x660E;
&#x5386;&#x53F2;&#x8BB0;&#x5F55;&#x662F;&#x6D4F;&#x89C8;&#x5668;&#x7684;&#x4E00;&#x4E2A;&#x7279;&#x6027;&#xFF0C;cookie &#x4F7F;&#x7528;&#x4E86;&#x4FDD;&#x6301;&#x72B6;&#x
          ...

          <div class="post-more-link text-center">
            <a class="btn" href="/2016/11/01/s012-Cookie、Session-存储/#more" rel="contents">
              Read more &raquo;
            </a>
          </div>
        
      
    </div>

    <div>
      
    </div>

    <div>
      
    </div>

    <footer class="post-footer">
      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </article>


    
      

  
  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="//schema.org/Article">

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                
                <a class="post-title-link" href="/2016/10/27/s011-数据库-MySQL/" itemprop="url">
                  数据库基础 以及 Node 操作方法
                </a>
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            <span class="post-meta-item-icon">
              <i class="fa fa-calendar-o"></i>
            </span>
            <span class="post-meta-item-text">Posted on</span>
            <time itemprop="dateCreated" datetime="2016-10-27T13:16:55+08:00" content="2016-10-27">
              2016-10-27
            </time>
          </span>

          
            <span class="post-category" >
              &nbsp; | &nbsp;
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">In</span>
              
                <span itemprop="about" itemscope itemtype="https://schema.org/Thing">
                  <a href="/categories/MySQL/" itemprop="url" rel="index">
                    <span itemprop="name">MySQL</span>
                  </a>
                </span>

                
                

              
            </span>
          

          
            
              <span class="post-comments-count">
                &nbsp; | &nbsp;
                <a href="/2016/10/27/s011-数据库-MySQL/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count ds-thread-count" data-thread-key="2016/10/27/s011-数据库-MySQL/" itemprop="commentsCount"></span>
                </a>
              </span>
            
          

          

          

          

          
        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
          &#x6570;&#x636E;&#x5E93;&#xFF1A;&#x5B58;&#x50A8;&#x6570;&#x636E;&#x7684;&#x4ED3;&#x5E93;&#x3002;

&#x6570;&#x636E;&#x7ED3;&#x6784;&#x5316;
&#x5B9E;&#x73B0;&#x6570;&#x636E;&#x5171;&#x4EAB;
&#x53EF;&#x4EE5;&#x51CF;&#x5C11;&#x5197;&#x4F59;&#x6570;&#x636E;


&#x6570;&#x636E;&#x72EC;&#x7ACB;&#x6027;&#x9AD8;
&#x6570;&#x636E;&#x7EDF;&#x4E00;&#x7BA1;&#x7406;&#x4E0E;&#x63A7;&#x5236;

&#x6570;&#x636E;&#x5E93;&#x4ECB;&#x7ECD;
MySQL &#x6570;&#x636E;&#x5E93;
Oracle
Orcale&#x6570;&#x636E;&#x5E93;&#x7BA1;&#x7406;&#x7CFB;&#x7EDF;&#x7531;&#x7532;&#x9AA8;&#x6587;&#x516C;&#x53F8;&#x5F00;&#x53D1;&#xFF0C;&#x5728;&#x6570;&#x636E;&#x5E93;&#x9886;&#x57DF;&#x4E00;&#x76F4;&#x5904;&#x4E8E;&#x9886;&#x5148;&#x5730;&#x4F4D;
&#x5546;&#x4E1A;&#x6536;&#x8D39;&#xFF0C;&#x5927;&#x578B;&#x7CFB;&#x7EDF;&#xFF0C;&#x6DD8;&#x5B9D;&#x3001;&#x4EAC;&#x4E1C;&#x5C31;&#x4F7F;&#x7528;&#x4E86; Oracle &#x6570;&#x636E;&#x5E93;


SqlServer &#x6570;&#x636E;&#x5E93;
&#x7531;&#x5FAE;&#x8F6F;&#x516C;&#x53F8;&#x5F00;&#x53D1;&#xFF0C;&#x53EA;&#
          ...

          <div class="post-more-link text-center">
            <a class="btn" href="/2016/10/27/s011-数据库-MySQL/#more" rel="contents">
              Read more &raquo;
            </a>
          </div>
        
      
    </div>

    <div>
      
    </div>

    <div>
      
    </div>

    <footer class="post-footer">
      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </article>


    
  </section>

  
  <nav class="pagination">
    <span class="page-number current">1</span><a class="page-number" href="/page/2/">2</a><span class="space">&hellip;</span><a class="page-number" href="/page/7/">7</a><a class="extend next" rel="next" href="/page/2/"><i class="fa fa-angle-right"></i></a>
  </nav>



          </div>
          


          

        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    <div class="sidebar-inner">

      

      

      <section class="site-overview sidebar-panel  sidebar-panel-active ">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="//schema.org/Person">
          <img class="site-author-image" itemprop="image"
               src="/images/photo.jpg"
               alt="Hongqin Ma" />
          <p class="site-author-name" itemprop="name">Hongqin Ma</p>
          <p class="site-description motion-element" itemprop="description">Spell at all costs， to rush you in the future. </p>
        </div>
        <nav class="site-state motion-element">
          <div class="site-state-item site-state-posts">
            <a href="/archives">
              <span class="site-state-item-count">68</span>
              <span class="site-state-item-name">posts</span>
            </a>
          </div>

          
            <div class="site-state-item site-state-categories">
              <a href="/categories">
                <span class="site-state-item-count">16</span>
                <span class="site-state-item-name">categories</span>
              </a>
            </div>
          

          
            <div class="site-state-item site-state-tags">
              <a href="/tags">
                <span class="site-state-item-count">57</span>
                <span class="site-state-item-name">tags</span>
              </a>
            </div>
          

        </nav>

        

        <div class="links-of-author motion-element">
          
            
              <span class="links-of-author-item">
                <a href="https://github.com/HongqinMa" target="_blank" title="GitHub">
                  
                    <i class="fa fa-fw fa-github"></i>
                  
                  GitHub
                </a>
              </span>
            
              <span class="links-of-author-item">
                <a href="https://twitter.com/HongqinMa" target="_blank" title="Twitter">
                  
                    <i class="fa fa-fw fa-twitter"></i>
                  
                  Twitter
                </a>
              </span>
            
              <span class="links-of-author-item">
                <a href="https://www.facebook.com/profile.php?id=100006581058735" target="_blank" title="Facebook">
                  
                    <i class="fa fa-fw fa-facebook"></i>
                  
                  Facebook
                </a>
              </span>
            
              <span class="links-of-author-item">
                <a href="http://www.zhihu.com/people/HirakuMa" target="_blank" title="知乎">
                  
                    <i class="fa fa-fw fa-share-alt"></i>
                  
                  知乎
                </a>
              </span>
            
          
        </div>

        
        

        
        
          <div class="links-of-blogroll motion-element links-of-blogroll-inline">
            <div class="links-of-blogroll-title">
              <i class="fa  fa-fw fa-globe"></i>
              Links
            </div>
            <ul class="links-of-blogroll-list">
              
                <li class="links-of-blogroll-item">
                  <a href="http://www.cnblogs.com/rubylouvre/" title="司徒正美" target="_blank">司徒正美</a>
                </li>
              
                <li class="links-of-blogroll-item">
                  <a href="http://www.cnblogs.com/sanshi/" title="三生石上" target="_blank">三生石上</a>
                </li>
              
                <li class="links-of-blogroll-item">
                  <a href="http://www.cnblogs.com/TomXu/" title="汤姆大叔" target="_blank">汤姆大叔</a>
                </li>
              
                <li class="links-of-blogroll-item">
                  <a href="http://gold.xitu.io/" title="掘金" target="_blank">掘金</a>
                </li>
              
                <li class="links-of-blogroll-item">
                  <a href="https://segmentfault.com/" title="segmentfault" target="_blank">segmentfault</a>
                </li>
              
                <li class="links-of-blogroll-item">
                  <a href="http://www.jianshu.com/users/1cbb94e5ed4d/latest_articles" title="简书" target="_blank">简书</a>
                </li>
              
                <li class="links-of-blogroll-item">
                  <a href="https://home.cnblogs.com/" title="博客园" target="_blank">博客园</a>
                </li>
              
                <li class="links-of-blogroll-item">
                  <a href="https://www.awesomes.cn/" title="Awesomes" target="_blank">Awesomes</a>
                </li>
              
            </ul>
          </div>
        

      </section>

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright" >
  
  &copy; 
  <span itemprop="copyrightYear">2016</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Hongqin Ma</span>
</div>

<div class="powered-by">
  Powered by <a class="theme-link" href="https://hexo.io">Hexo</a>
</div>

<div class="theme-info">
  Theme -
  <a class="theme-link" href="https://github.com/iissnan/hexo-theme-next">
    NexT.Muse
  </a>
</div>

<script async src="https://dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script>
<span id="busuanzi_container_site_pv">
    &nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;Page Views: <span id="busuanzi_value_site_pv"></span> 
</span>

        

<div class="busuanzi-count">

  <script async src="https://dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script>

  
    <span class="site-uv"><i class="fa fa-user"></i><span class="busuanzi-value" id="busuanzi_value_site_uv"></span></span>
  

  
    <span class="site-pv"><i class="fa fa-eye"></i><span class="busuanzi-value" id="busuanzi_value_site_pv"></span></span>
  
  
</div>



        
      </div>
    </footer>

    <div class="back-to-top">
      <i class="fa fa-arrow-up"></i>
    </div>
  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  



  
  <script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>

  
  <script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>

  
  <script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>

  
  <script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>

  
  <script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>

  
  <script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.0.2"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.0.2"></script>



  
  

  

  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.0.2"></script>



  

  
    
  

  <script type="text/javascript">
    var duoshuoQuery = {short_name:"Hiraku"};
    (function() {
      var ds = document.createElement('script');
      ds.type = 'text/javascript';ds.async = true;
      ds.id = 'duoshuo-script';
      ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
      ds.charset = 'UTF-8';
      (document.getElementsByTagName('head')[0]
      || document.getElementsByTagName('body')[0]).appendChild(ds);
    })();
  </script>

  
    
    <script src="/lib/ua-parser-js/dist/ua-parser.min.js?v=0.7.9"></script>
    <script src="/js/src/hook-duoshuo.js"></script>
  






  
  

  

  

  
  <script src="https://cdn1.lncld.net/static/js/av-core-mini-0.6.1.js"></script>
  <script>AV.initialize("PPmoIQxeu8Sd21h6Tl9TthNx-gzGzoHsz", "rTvbY2H7DvWzRipiBwn72RQ4");</script>
  <script>
    function showTime(Counter) {
      var query = new AV.Query(Counter);
      var entries = [];
      var $visitors = $(".leancloud_visitors");

      $visitors.each(function () {
        entries.push( $(this).attr("id").trim() );
      });

      query.containedIn('url', entries);
      query.find()
        .done(function (results) {
          var COUNT_CONTAINER_REF = '.leancloud-visitors-count';

          if (results.length === 0) {
            $visitors.find(COUNT_CONTAINER_REF).text(0);
            return;
          }

          for (var i = 0; i < results.length; i++) {
            var item = results[i];
            var url = item.get('url');
            var time = item.get('time');
            var element = document.getElementById(url);

            $(element).find(COUNT_CONTAINER_REF).text(time);
          }
          for(var i = 0; i < entries.length; i++) {
            var url = entries[i];
            var element = document.getElementById(url);
            var countSpan = $(element).find(COUNT_CONTAINER_REF);
            if( countSpan.text() == '') {
              countSpan.text(0);
            }
          }
        })
        .fail(function (object, error) {
          console.log("Error: " + error.code + " " + error.message);
        });
    }

    function addCount(Counter) {
      var $visitors = $(".leancloud_visitors");
      var url = $visitors.attr('id').trim();
      var title = $visitors.attr('data-flag-title').trim();
      var query = new AV.Query(Counter);

      query.equalTo("url", url);
      query.find({
        success: function(results) {
          if (results.length > 0) {
            var counter = results[0];
            counter.fetchWhenSave(true);
            counter.increment("time");
            counter.save(null, {
              success: function(counter) {
                var $element = $(document.getElementById(url));
                $element.find('.leancloud-visitors-count').text(counter.get('time'));
              },
              error: function(counter, error) {
                console.log('Failed to save Visitor num, with error message: ' + error.message);
              }
            });
          } else {
            var newcounter = new Counter();
            /* Set ACL */
            var acl = new AV.ACL();
            acl.setPublicReadAccess(true);
            acl.setPublicWriteAccess(true);
            newcounter.setACL(acl);
            /* End Set ACL */
            newcounter.set("title", title);
            newcounter.set("url", url);
            newcounter.set("time", 1);
            newcounter.save(null, {
              success: function(newcounter) {
                var $element = $(document.getElementById(url));
                $element.find('.leancloud-visitors-count').text(newcounter.get('time'));
              },
              error: function(newcounter, error) {
                console.log('Failed to create');
              }
            });
          }
        },
        error: function(error) {
          console.log('Error:' + error.code + " " + error.message);
        }
      });
    }

    $(function() {
      var Counter = AV.Object.extend("Counter");
      if ($('.leancloud_visitors').length == 1) {
        addCount(Counter);
      } else if ($('.post-title-link').length > 1) {
        showTime(Counter);
      }
    });
  </script>



  

  

  
  
  <!-- custom analytics part create by xiamo -->
<script src="https://cdn1.lncld.net/static/js/av-core-mini-0.6.1.js"></script>
<script>AV.initialize("PPmoIQxeu8Sd21h6Tl9TthNx-gzGzoHsz", "rTvbY2H7DvWzRipiBwn72RQ4");</script>
<script>
function showTime(Counter) {
  var query = new AV.Query(Counter);
  $(".leancloud_visitors").each(function() {
    var url = $(this).attr("id").trim();
    query.equalTo("url", url);
    query.find({
      success: function(results) {
        if (results.length == 0) {
          var content = '0 ' + $(document.getElementById(url)).text();
          $(document.getElementById(url)).text(content);
          return;
        }
        for (var i = 0; i < results.length; i++) {
          var object = results[i];
          var content = object.get('time') + ' ' + $(document.getElementById(url)).text();
          $(document.getElementById(url)).text(content);
        }
      },
      error: function(object, error) {
        console.log("Error: " + error.code + " " + error.message);
      }
    });

  });
}

function addCount(Counter) {
  var Counter = AV.Object.extend("Counter");
  url = $(".leancloud_visitors").attr('id').trim();
  title = $(".leancloud_visitors").attr('data-flag-title').trim();
  var query = new AV.Query(Counter);
  query.equalTo("url", url);
  query.find({
    success: function(results) {
      if (results.length > 0) {
        var counter = results[0];
        counter.fetchWhenSave(true);
        counter.increment("time");
        counter.save(null, {
          success: function(counter) {
            var content =  counter.get('time') + ' ' + $(document.getElementById(url)).text();
            $(document.getElementById(url)).text(content);
          },
          error: function(counter, error) {
            console.log('Failed to save Visitor num, with error message: ' + error.message);
          }
        });
      } else {
        var newcounter = new Counter();
        newcounter.set("title", title);
        newcounter.set("url", url);
        newcounter.set("time", 1);
        newcounter.save(null, {
          success: function(newcounter) {
              console.log("newcounter.get('time')="+newcounter.get('time'));
            var content = newcounter.get('time') + ' ' + $(document.getElementById(url)).text();
            $(document.getElementById(url)).text(content);
          },
          error: function(newcounter, error) {
            console.log('Failed to create');
          }
        });
      }
    },
    error: function(error) {
      console.log('Error:' + error.code + " " + error.message);
    }
  });
}
$(function() {
  var Counter = AV.Object.extend("Counter");
  if ($('.leancloud_visitors').length == 1) {
    addCount(Counter);
  } else if ($('.post-title-link').length > 1) {
    showTime(Counter);
  }
}); 
</script>

  
</body>
</html>
